<?php

	session_start();
	require_once '../functions.php';
	
	$requestMethod = isset($_REQUEST['_method']) ? $_REQUEST['_method'] : $_SERVER['REQUEST_METHOD'];	
	switch ($requestMethod) {
		case 'POST':
			$zipcode=array();
			$zipcode=GetZipcodes();
			echo json_encode($zipcode);				
			break;			
		default:
	        echo json_encode();
	}